// userSlice
export type RequiredUserInfoType = {
  id: string;
  username: string;
  nickname: string;
  phonenumber: string;
  avatar?: string;
};
export type UserInfoType = Partial<RequiredUserInfoType>; // Partial 将必选项改为可选项
export type UserSliceType = {
  userInfo: UserInfoType | null;
  userToken: string | null;
  setUserInfo: (data: UserInfoType | null) => void;
  setToken: (data: string | null) => void;
};
